<?php

	//-----------------------------------------------------
	//-----------------------------------------------------
	$address=$_GET["email"]; // You must change it.... write to your mail.	
	//-----------------------------------------------------
	//-----------------------------------------------------

	$name = $_POST["Name"];
	$tel = $_POST["Tel"];
	$email = $_POST["Email"];
	$subject = $_POST["Subject"];
	$message = $_POST["Message"];

	// Your mail box title
	$title= "From: $name <$email>\n";
	
	// Your mail box subject
	$sub="You have a mail!"; 
	$ip = $_SERVER['REMOTE_ADDR'];
	
	// mail content
	$data="Sender IP: $ip <br>\n\n Name: $name <br>\n\n Telephone : $tel <br>\n\n Mail : $email <br>\n\n Subject : $subject <br>\n\n Message : $message"; 
	
	// mail head set
	$title .= 'Content-type: text/html; charset=iso-8859-9' . "\r\n";
	$title .= 'From: WebMail <$address>' . "\r\n";
	
	// mail sender function
	if (mail($address, $sub, $data, $title)){
		echo "Success, mail has been sent!";
	}else{
		echo "Error!";
	}

?>